package com.example.product.service.impl;

import com.example.product.bean.Product;
import com.example.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceimpl implements ProductService {
    @Override
    public Product getProductById(Long productId) {
        //组装商品
        Product product = new Product(productId,"华为手机", new BigDecimal(10000), 100);

        return product;
    }
}
